HEAD= -w -std=c++17 -I../../../lib/release-install-cpp11/include/
LIB=-L ../../../lib/release-install-cpp11/lib/ -lmuduo_net -lmuduo_base -pthread -ljsoncpp


all : publish server subscribe
server : topic_server.cc
	g++ -o $@ $^ $(HEAD) $(LIB) -g
publish : topic_publish.cc
	g++ -o $@ $^ $(HEAD) $(LIB) -g
subscribe : topic_subscribe.cc
	g++ -o $@ $^ $(HEAD) $(LIB) -g

.PHONY:clean
clean:
	rm -rf server publish subscribe
